package com.qm.console.dao.model;

public class ValueDisplayConfig {

    public static final Integer VALUE_TYPE_PROP = 0;
    public static final Integer VALUE_TYPE_PROP_CHANGE_REASON = 1;

    private Integer id;

    private String value;

    private String label;

    private Integer type;

    private Integer parent;

    private Integer onShow;

    public Integer getOnShow() {
        return onShow;
    }

    public void setOnShow(Integer onShow) {
        this.onShow = onShow;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", value=").append(value);
        sb.append(", label=").append(label);
        sb.append(", type=").append(type);
        sb.append("]");
        return sb.toString();
    }
}